#{extends 'frame.html' /}
#{set title:'身份认证审核' /}

#{set 'moreStyles'}
<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/admin/buyer-audit.css'}" />
<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/jquery.pagination.css'}" />
#{/set}
#{authenticityToken /}
<div class="contentCard">
	<div class="contentTitle">身份认证列表</div>
	<div>
		<div style="margin-top:10px;line-height:30px;margin-left:15px"> 
			<span class="floatLeft mr10" style="font-size:14px">所属账号:</span>
			<input type="text" id="nick" class="floatLeft mr10 inputText"  style="height:20px"/>
			<select class="floatLeft mr10" id="status" style="height:30px;margin-left:15px;font-size:14px">
				<option value="">全部</option>
				<option value="WAIT_CHECK">待审核</option>
				<option value="PASS">已通过</option>
				<option value="FAIL">已拒绝</option>
			</select>
			<a class="stdColorButton queryBtn lh mr20" href="javascript:;" id="queryBtn" onclick="loadAccount(1)">查询</a>
		</div>
		<table class="normTable">
			<thead>
				<tr>
					<td>所属账号</td>
					<td>身份证图片</td>
					<td>银行</td>
					<td>银行卡号</td>
					<td>户名</td>
					<td>开户行</td>
					<td>操作</td>
				</tr>
			</thead>
			<tbody id="accountContainer"></tbody>
		</table>
		<div id="noMsg">
			<div class="warnBox">
				<span class="iconfont">&#xf00b6;</span>
				没有待审核的买号
			</div>
		</div>
		<div class="pagin-btm clearFix" style="display: none;">
			<div class="pagination"></div>
		</div>
	</div>
	<div class="popWrapper" style="display: none;" id="tr_loading_mask">
		<div class="maskLayer"></div>
		<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />
	</div>
</div>

<!--拒绝理由窗口-->
<div class="popWrapper" id="refuseReasonWnd">
	<div class="maskLayer"></div>
	<div class="modalWnd">
		<a href="javascript:;" class="wnd_Close_Icon" title="关闭窗口"></a>
		<h3 class="topTile">拒绝审核</h3>
		<div class="modalWndInner">
			<div id="reasonShower">
				<textarea class="inputText" id="txtReason"></textarea>
			</div>
		</div>
		<div class="wndBotButtonSection">
			<a id="btnRefuse" href="javascript:;" class="botButton" bid="">确认</a>
		</div>
	</div>

</div>
#{authenticityToken /}
<!--keyword muban-->
<textarea class="muban" id="trowTemp">
	{{#results}}
	<tr bid="{{id}}">
		<td>{{nick}}</td>
		<td>
			<a href="{{picUrl}}" target="_blank"><img src="{{picUrl}}" style="width:100px;height:100px"/></a>
		</td>
		<td> 
			{{bankName}}
		</td>
		<td>{{accountNo}}</td>
		<td>{{accountName}}</td>
		<td>{{createBank}}</td>
		<td>
			{{#sta}}
			<a class="stdColorButton access" href="javascript:;">通过</a>
			<a class="stdColorButton refuse" href="javascript:;">拒绝</a>
			{{/sta}}
		</td>
	</tr>
	{{/results}}
</textarea>
#{set 'moreScripts'}
<script src="@{'/public/javascripts/jquery.pagination.js'}" type="text/javascript"></script>
<script src="@{'/public/javascripts/mustache.min.js'}" type="text/javascript"></script>
<script src="@{'/public/javascripts/admin/identity_auth.js'}" type="text/javascript"></script>
<script type="text/javascript">App.module = 'identity';</script>
#{/set}